package com.ego.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ego.order.dao.OrderItemDao;
import com.ego.order.po.OrderItem;
import com.ego.order.service.OrderItemService;

import java.util.List;

/**
 * @program: ego
 * @description 订单项信息对应实现类
 * @author KamTang
 * @date 2022-11-13 11:25:07
 */
@Service("orderItemService")
public class OrderItemServiceImpl extends ServiceImpl<OrderItemDao, OrderItem> implements OrderItemService {
    @Override
    public List<OrderItem> get(String orderSn) {
        return this.list(new QueryWrapper<OrderItem>().eq("order_sn", orderSn));
    }
}
